<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ContactForm
 *
 * @author Jonnatan
 */
class ContactForm extends BaseForm {

    protected static $subjects = array('A' => 'Subject A', 'B' => 'Subject B', 'C' => 'Subject C');

    public function configure() {
        $this->setWidgets(array(
            'name' => new sfWidgetFormInputText(),
            'email' => new sfWidgetFormInputText(),
            'subject' => new sfWidgetFormSelect(array('choices' => self::$subjects)),
            'message' => new sfWidgetFormTextarea(),
        ));

        $this->widgetSchema->setNameFormat('contact[%s]');
    }

}
